/**********************************************************************
  The MIT License (MIT)
  Copyright (c) 2012 sunriseyuen

  Permission is hereby granted, free of charge, to any person obtaining
  a copy of this software and associated documentation files
  (the "Software"), to deal in the Software without restriction,
  including without limitation the rights to use, copy, modify, merge,
  publish, distribute, sublicense, and/or sell copies of the Software,
  and to permit persons to whom the Software is furnished to do so,
  subject to the following conditions:

  The above copyright notice and this permission notice shall be included
  in all copies or substantial portions of the Software.

  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
  OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
  IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
  DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
  TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH
  THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 ***********************************************************************/

#define _DEF_CCY_CODE
#define _ZZDEBUG
#define _PROJ_DC

#region Using directives
using System;
using System.Text;
using System.Collections;
using System.Collections.Generic;
using System.Collections.Specialized;

using Muki.Framework.Util;
using Muki.Framework.Business;
using Muki.Framework;
using Muki.UserDefine;
using Muki.Entity;
using Dot.StreamObject;

#endregion

namespace Muki.UserPanel
{
	public class UID02205AE:EntityObject
	{
				private string _AR_NO="";
				private string _COMP_CODE="";
				private string _ODTP_STATUS="";
				private string _ODTP_CODE="";
				private string _CCY_CODE="";
				private decimal _XCHG_RATE=0;
				private string _CUS_CODE="";
				private string _BPN_NAME01="";
				private string _IV_NO="";
				private DateTime _IV_DATE=DateTime.MinValue;
				private DateTime _TRANS_DATE=DateTime.MinValue;
				private string _LC_NO="";
				private string _LC_AMT="";
				private DateTime _DUE_DATE=DateTime.MinValue;
				private string _CUS_ORD="";
				private string _DN_NO="";
				private DateTime _BANK_IN_DATE=DateTime.MinValue;
				private string _AR_ODTP_RMKS="";
				private decimal _AR_DR_AMT=0;
				private decimal _AR_CR_AMT=0;
				private decimal _DIFF_DET_AMT=0;

				[AttributeMapping(TableName="ARVHDTM",ColumnName="AR_NO")]
					public string AR_NO	{	get { return _AR_NO; }	set { _AR_NO = value; } }
				[AttributeMapping(TableName="ARVHDTM",ColumnName="COMP_CODE")]
					public string COMP_CODE	{	get { return _COMP_CODE; }	set { _COMP_CODE = value; } }
				[AttributeMapping(TableName="ARVHDTM",ColumnName="ODTP_STATUS")]
					public string ODTP_STATUS	{	get { return _ODTP_STATUS; }	set { _ODTP_STATUS = value; } }
				[AttributeMapping(TableName="ARVHDTM",ColumnName="ODTP_CODE")]
					public string ODTP_CODE	{	get { return _ODTP_CODE; }	set { _ODTP_CODE = value; } }
				[AttributeMapping(TableName="ARVHDTM",ColumnName="CCY_CODE")]
					public string CCY_CODE	{	get { return _CCY_CODE; }	set { _CCY_CODE = value; } }
				[AttributeMapping(TableName="ARVHDTM",ColumnName="XCHG_RATE")]
					public decimal XCHG_RATE	{	get { return _XCHG_RATE; }	set { _XCHG_RATE = value; } }
				[AttributeMapping(TableName="ARVHDTM",ColumnName="CUS_CODE")]
					public string CUS_CODE	{	get { return _CUS_CODE; }	set { _CUS_CODE = value; } }
				[AttributeMapping(TableName="VARIABLE",ColumnName="BPN_NAME01")]
					public string BPN_NAME01	{	get { return _BPN_NAME01; }	set { _BPN_NAME01 = value; } }
				[AttributeMapping(TableName="ARVHDTM",ColumnName="IV_NO")]
					public string IV_NO	{	get { return _IV_NO; }	set { _IV_NO = value; } }
				[AttributeMapping(TableName="ARVHDTM",ColumnName="IV_DATE")]
					public DateTime IV_DATE	{	get { return _IV_DATE; }	set { _IV_DATE = value; } }
				[AttributeMapping(TableName="ARVHDTM",ColumnName="TRANS_DATE")]
					public DateTime TRANS_DATE	{	get { return _TRANS_DATE; }	set { _TRANS_DATE = value; } }
				[AttributeMapping(TableName="ARVHDTM",ColumnName="LC_NO")]
					public string LC_NO	{	get { return _LC_NO; }	set { _LC_NO = value; } }
				[AttributeMapping(TableName="ARVHDTM",ColumnName="LC_AMT")]
					public string LC_AMT	{	get { return _LC_AMT; }	set { _LC_AMT = value; } }
				[AttributeMapping(TableName="ARVHDTM",ColumnName="DUE_DATE")]
					public DateTime DUE_DATE	{	get { return _DUE_DATE; }	set { _DUE_DATE = value; } }
				[AttributeMapping(TableName="ARVHDTM",ColumnName="CUS_ORD")]
					public string CUS_ORD	{	get { return _CUS_ORD; }	set { _CUS_ORD = value; } }
				[AttributeMapping(TableName="ARVHDTM",ColumnName="DN_NO")]
					public string DN_NO	{	get { return _DN_NO; }	set { _DN_NO = value; } }
				[AttributeMapping(TableName="ARVHDTM",ColumnName="BANK_IN_DATE")]
					public DateTime BANK_IN_DATE	{	get { return _BANK_IN_DATE; }	set { _BANK_IN_DATE = value; } }
				[AttributeMapping(TableName="ARVHDTM",ColumnName="AR_ODTP_RMKS")]
					public string AR_ODTP_RMKS	{	get { return _AR_ODTP_RMKS; }	set { _AR_ODTP_RMKS = value; } }
				[AttributeMapping(TableName="VARIABLE",ColumnName="AR_DR_AMT")]
					public decimal AR_DR_AMT	{	get { return _AR_DR_AMT; }	set { _AR_DR_AMT = value; } }
				[AttributeMapping(TableName="VARIABLE",ColumnName="AR_CR_AMT")]
					public decimal AR_CR_AMT	{	get { return _AR_CR_AMT; }	set { _AR_CR_AMT = value; } }
				[AttributeMapping(TableName="VARIABLE",ColumnName="DIFF_DET_AMT")]
					public decimal DIFF_DET_AMT	{	get { return _DIFF_DET_AMT; }	set { _DIFF_DET_AMT = value; } }

		public List<LogisticException> Exceptions=new List<LogisticException>();

		private string _DATA_ATVT_CODE   = "";
		private string _DATA_STATUS_CODE = "Unproven";
		private string _NAVI_STATUS_CODE = "N";
		private string _ATVT_CODE        = "";
		private string _P_DATA           = "";
		private Wxf    _Wxf              = new Wxf();

		public  string DATA_STATUS_CODE { get { return _DATA_STATUS_CODE; } set { _DATA_STATUS_CODE = value; }  }
		public  string NAVI_STATUS_CODE { get { return _NAVI_STATUS_CODE; } set { _NAVI_STATUS_CODE = value; }  }
		public  string DATA_ATVT_CODE   { get { return _DATA_ATVT_CODE;   } set { _DATA_ATVT_CODE   = value; }  }
		public  string ATVT_CODE        { get { return _ATVT_CODE;        } set { _ATVT_CODE        = value; }  }
		public  string P_DATA           { get { return _P_DATA;           } set { _P_DATA = value;           }  }
		public  Wxf    Wxf              { get { return _Wxf;              } set { _Wxf = value;              }  }

		public string  PK_DATA
		{
			get
			{
				return ZZGeneral.Base64Encoder("AR_NO="+this.AR_NO); 
			}
		}

		private string _USECURITY_CODE1 = "";
		private string _USECURITY_CODE2 = "";
		private string _USECURITY_CODE3 = "";
		private string _USECURITY_CODE4 = "";
		private string _USECURITY_CODE5 = "";
		private string _USECURITY_CODE6 = "";
		private int    _USECURITY_RIGHT = 50;
		private string _UZADD_DATE      = "";
		private string _UZADD_USER      = "";
		private string _UZCHG_DATE      = "";
		private string _UZCHG_USER      = "";

		public string USECURITY_CODE1 { get { return _USECURITY_CODE1; } set { _USECURITY_CODE1 = value; }  }
		public string USECURITY_CODE2 { get { return _USECURITY_CODE2; } set { _USECURITY_CODE2 = value; }  }
		public string USECURITY_CODE3 { get { return _USECURITY_CODE3; } set { _USECURITY_CODE3 = value; }  }
		public string USECURITY_CODE4 { get { return _USECURITY_CODE4; } set { _USECURITY_CODE4 = value; }  }
		public string USECURITY_CODE5 { get { return _USECURITY_CODE5; } set { _USECURITY_CODE5 = value; }  }
		public string USECURITY_CODE6 { get { return _USECURITY_CODE6; } set { _USECURITY_CODE6 = value; }  }
		public int    USECURITY_RIGHT { get { return _USECURITY_RIGHT; } set { _USECURITY_RIGHT = value; }  }
		public string UZADD_DATE      { get { return _UZADD_DATE;      } set { _UZADD_DATE      = value; }  }
		public string UZADD_USER      { get { return _UZADD_USER;      } set { _UZADD_USER      = value; }  }
		public string UZCHG_DATE      { get { return _UZCHG_DATE;      } set { _UZCHG_DATE      = value; }  }
		public string UZCHG_USER      { get { return _UZCHG_USER;      } set { _UZCHG_USER      = value; }  }

	}
}
